package com.example.dqreptile.entity;


import javax.persistence.*;
import java.util.List;

@Entity
@Table(name = "charact")
public class Charact {


    @Id
    private int cId;

    private String cName;

    private String cRemark;

    @ManyToMany(mappedBy = "charactList")
    private List<Monster> monsterList;



    public int getcId() {
        return cId;
    }

    public void setcId(int cId) {
        this.cId = cId;
    }

    public String getcName() {
        return cName;
    }

    public void setcName(String cName) {
        this.cName = cName;
    }

    public String getcRemark() {
        return cRemark;
    }

    public void setcRemark(String cRemark) {
        this.cRemark = cRemark;
    }

    public List<Monster> getMonsterList() {
        return monsterList;
    }

    public void setMonsterList(List<Monster> monsterList) {
        this.monsterList = monsterList;
    }

    @Override
    public String toString() {
        return "Charact{" +
                "cId=" + cId +
                ", cName='" + cName + '\'' +
                ", cRemark='" + cRemark + '\'' +
                ", monsterList=" + monsterList +
                '}';
    }
}
